package com.medicine.product.study.factory;

/**
 * @author lynn
 * @version 1.0
 * @date 2022/2/14
 */
public class FactoryTest {
    public static void main(String[] args) {
        SendFactory factory = new SendFactory();
        Sender sender = factory.produce("sms");
        sender.send();

        Sender sender1 = factory.produceMail();
        sender1.send();
    }
}
